<template>
  <div>
    <h1>测试my-dialog</h1>
    <button @click="isShow=!isShow">切换显示和隐藏</button>
    <my-dialog v-model="isShow" title="初春小雨" content="我是内容" @no="hno" @yes="hyes">
      <div slot="body">
        <h4>唐：韩愈</h4>
        <p>天街小雨润如酥，</p>
        <p>草色遥看近却无。</p>
        <p>最是一年春好处，</p>
        <p>绝胜烟柳满皇都。</p>
      </div>
    </my-dialog>
  </div>
</template>

<script type="text/javascript">
export default {
  name: 'PageDialog',
  data () {
    return {
      isShow: false
    }
  },
  methods: {
    hno () {},
    hyes () {}
  }
}
</script>

<style scoped lang="less" >
</style>
